# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-channels
_pyname="channels"
pkgver=4.1.0
pkgrel=1
arch="noarch"
pkgdesc="Developer-friendly asynchrony for Django"
url="https://pypi.python.org/project/channels"
license="BSD-3-Clause"
depends="
	py3-django
	py3-asgiref
	py3-daphne
	"
makedepends="
	py3-setuptools
	py3-gpep517
	py3-wheel
	"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/c/channels/channels-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
7a238da53ce19cd9520ff580b8449d61c4c451664126ebf67a7c21f7acdd32626f0cf62ced073519281e842f0c9efd61dbab2eab13ef79cb397d3dd5ad44ad7a  py3-channels-4.1.0.tar.gz
"
